package pers.cz.mxgraph;

import org.dom4j.Element;

/**
 * @program: Reids
 * @description: MxEdge
 * @author: Cheng Zhi
 * @create: 2023-01-06 11:32
 **/
public class MxEdge extends MxElement {

    private static final String TRAGET = "target";

    private static final String SOURCE = "source";

    public MxEdge(Element element) {
        super(element);
    }

    public Integer getTargetId() {
        String s = getData().get(TRAGET);
        return Integer.valueOf(s);
    }

    public Integer getSourceId() {
        String s = getData().get(SOURCE);
        return Integer.valueOf(s);
    }
}
